abstract class $PQ{T < $IS_LT{T}} < $DISPENSER{T}
****
Standard priority queue abstraction. Returns the element with the highest priority


Ancestors
$DISPENSER{_} $STR $CONTAINER{_} $ELT{_}
$ELT

Descendants
A_PQ{_}



Public


Features
clear;
**** Remove all elements from the queue
insert(e: T);
**** Insert the element "e" into the priority queue
is_empty: BOOL;
**** Return true if the queue is empty
pop: T;
**** Remove and return the top most element (alias for "remove")
top: T;
**** Return the top element of the queue.

The Sather Home Page